package org.example;

/**
 *  数组的类信息
 *
 *  class 数组类 [I   implements Cloneable,Serializable{
 *
 *  }
  */
public class AppArrayClassInfo {
    public static void main(String[] args) {
        int[] arr = {11, 22};

        System.out.println(arr.getClass());
        System.out.println(arr.length);

        Class<? extends int[]> aClass = arr.getClass();

        System.out.println(aClass.getSuperclass());

        Class<?>[] interfaces = aClass.getInterfaces();
        for (Class clazz : interfaces
        ) {
            System.out.println(clazz);
        }

    }
}
